# -*- coding: UTF8 -*-
# Author: Sakurazaki
# (Aitor Martin. @arienai_ne - sakurazaki.setsunita@gmail.com)

import random, json

import entities
from paths import ENTITIES

class EntityFactory(object):

    BEHAVIOURS = {
        0: 'normal'
    }

    def getIsland(self, team):
        return entities.Island(team, json.load( open(ENTITIES + "%s_island.entity" % ( self.BEHAVIOURS[random.randint(0, len(self.BEHAVIOURS)-1)])) ))

    def getBubble(self, island):
        return entities.Bubble(island, json.load( open(ENTITIES + "%s_bubble.entity" % ( self.BEHAVIOURS[random.randint(0, len(self.BEHAVIOURS)-1)])) ))
